public class Client {
    public static void main(String[] args) {
        Composite root = new Composite("root");
        Composite comp = new Composite("comp");
        Leaf leaf1 = new Leaf("leaf1");
        Leaf leaf2 = new Leaf("leaf2");

        root.add(comp);
        root.add(leaf1);
        comp.add(leaf2);

        root.display(0);
    }
}
